<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

	<rich:panel id="Edit" styleClass="form">
		


			<a4j:form ajaxSingle="true">
				<h:panelGrid>
					<div class="attributes">

						<s:decorate template="/layout/input.xhtml">
							<ui:define name="label">Descripcion</ui:define>
							<h:inputText id="RefDetDesc" maxlength="20"
								value="#{editRef.editRefDet.descrip}"
								required="true" size="25"
								requiredMessage="Favor introduzca la descripcion"
								validatorMessage="La descripcion no puede ser menor a 3 o mayor a 50">
								<f:validateLength minimum="3" maximum="50" />
								<a4j:support event="onblur" />
							</h:inputText>
							<div class="msg_container">
								<rich:message for="RefDetDesc" />
							</div>
						</s:decorate>
						<div style="clear: both;" />
						
						<s:decorate template="/layout/input.xhtml">
							<ui:define name="label">Descripcion Abrev.</ui:define>
							<h:inputText id="RefDetShortName" maxlength="20"
								value="#{editRef.editRefDet.shortname}"
								required="true" size="25"
								requiredMessage="Favor introduzca la descripcion Abreviada"
								validatorMessage="La descripcion no puede ser menor a 3 o mayor a 50">
								<f:validateLength minimum="3" maximum="50" />
								<a4j:support event="onblur" />
							</h:inputText>
							<div class="msg_container">
								<rich:message for="RefDetShortName" />
							</div>
						</s:decorate>
						<div style="clear: both;" />
						
						
					</div>

				<s:decorate template="/layout/displayButton.xhtml">
					<a4j:commandButton value="Guardar"
						action="#{editRef.refDetUpd()}"
						oncomplete="#{rich:component('RefDetModalPanel')}.hide()"
						reRender="updRefDetGridForm, updRefDetForm" />
					<rich:spacer width="20px" />
					<a4j:commandButton value="Cancelar"
						oncomplete="#{rich:component('RefDetModalPanel')}.hide()"
						action="#{editRef.changeUpdTab('updRefDet')}" >
					</a4j:commandButton>
				</s:decorate>
			
			</h:panelGrid>
		</a4j:form>
	</rich:panel>
</ui:composition>